import http from './http.js'


let hsq = '/api';
//4G相机设备列表分页
export const token = (params) => {
    return http.post('/kapi/cilent/validate?key=' + params)
}

export const Rules = (params) => {
    return http.get(hsq + '/hsqManage/getRules' + params)
}

export const addRules = (params) => {
    return http.post(hsq + '/hsqManage/add', params)
}

export const updateRules = (params) => {
    return http.post(hsq + '/hsqManage/update', params)
}

export const ArticlePage = (params) => {
    return http.get(hsq + '/smtWechat/adminArticlePage', params)
}

export const article = (params) => {
    return http.get(hsq + '/smtWechat/articlePublish?id=' + params)
}

export const articleinfo = (params) => {
    return http.get(hsq + '/smtWechat/adminArticleInfo?id=' + params)
}

export const DayRules = (params) => {
    return http.get(hsq + '/hsqManage/getDayRules', params)
}

export const RuleInfo = (params) => {
    return http.get(hsq + '/hsqManage/getRuleInfo?id=' + params)
}

export const Spots = (params) => {
    return http.get(hsq + '/hsqManage/getSpots', params)
}

export const recentReserve = (params) => {
    return http.get(hsq + '/hsqManage/recentReserve?areaId=' + params)
}

export const reservePage = (params) => {
    return http.get(hsq + '/hsqManage/reservePage', params)
}

export const speciesPage = (params) => {
    return http.get(hsq + '/hsqManage/speciesPage', params)
}

export const reservePageNum = (params) => {
    return http.get(hsq + '/hsqManage/reservePageNum', params)
}

export const addArticle = (params) => {
    return http.post(hsq + '/smtWechat/addArticle', params)
}

export const updateDayRule = (params) => {
    return http.post(hsq + '/hsqManage/updateDayRule', params)
}

export const addSpot = (params) => {
    return http.post(hsq + '/hsqManage/addSpot', params)
}

export const updateSpot = (params) => {
    return http.post(hsq + '/hsqManage/updateSpot', params)
}

export const saveSpecies = (params) => {
    return http.post(hsq + '/hsqManage/saveSpecies', params)
}

export const deleteArticle = (params) => {
    return http.del(hsq + '/smtWechat/deleteArticle?id=' + params)
}

export const delSpot = (params) => {
    return http.del(hsq + '/hsqManage/delSpot?id=' + params)
}

export const deleteManage = (params) => {
    return http.del(hsq + '/hsqManage/deleteManage?id=' + params)
}

export const delSpecies = (params) => {
    return http.del(hsq + '/hsqManage/delSpecies?id=' + params)
}